package com.bor.gb.db.repositories;

import com.bor.gb.core.repo.CustomCommonImpl;
import com.bor.gb.db.domain.Guide;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by bor on 11/6/14.
 */
@Component
public class GuideRepositoryImpl extends CustomCommonImpl<Guide> implements GuideRepositoryCustom{

    public GuideRepositoryImpl() {
        super(Guide.class);
    }

    @Autowired
    private GuideRepository guideRepository;

    @Override
    public boolean isExistByUrl(String url) {
        boolean exists = guideRepository.findByUrl(url) != null;
        return exists;
    }

}
